package where2go.sctu.com.zhiyou;

import android.app.Application;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.tencent.bugly.crashreport.CrashReport;

/**
 * ProjectName: zhiyou
 * PackageName: where2go.sctu.com.zhiyou
 * Created by 张某人
 * CreatedTime:on 2018/5/11   11:12
 * Description:
 */

public class MyApplication extends Application{

    public static RequestQueue queues; //请求队列
    @Override
    public void onCreate() {
        super.onCreate();
        /* Bugly SDK初始化
        * 参数1：上下文对象
        * 参数2：APPID，平台注册时得到,注意替换成你的appId
        * 参数3：是否开启调试模式，调试模式下会输出'CrashReport'tag的日志
        */
        CrashReport.initCrashReport(getApplicationContext(), "60592858da", false);
        queues= Volley.newRequestQueue(getApplicationContext());
    }

    public static RequestQueue getHttpQueues(){
        return queues;
    }
}
